/*
 * @Description: 
 * @Author: 张文韬
 * @Date: 2024-07-10 16:29:46
 * @LastEditTime: 2024-07-15 13:24:04
 * @LastEditors: 张文韬
 * @Reference: 
 */
import { get, post, put, DELETE } from '@/utils/request'

// 获取目的地
export const destination = (params) => get('/api/travel.manage/destination', params)

// 产品列表
export const productList = (data) => get('/api/bbProduct/list')
export const searchByMuenIdAndDate = (data) => post('/api/bbProduct/searchByMuenIdAndDate', data)


// 订单列表
export const bbOrder = (params) => post('/api/bbOrder/queryByParam', params)
export const searchOrder = (params) => post('/api/bbOrder/searchOrder', params)
// export const exportImpl = (params) => post('/api/bbOrder/exportImpl', params)

export const getItem = (params) => get('/api/bbOrder/getItem', params)

export const bbOrderSave = (params) => post('/api/bbOrder', params)
export const bbOrderEdit = (params) => put('/api/bbOrder', params)
export const bbOrderCancel = (params) => post('/api/bbOrder/cancel', params)
export const bbOrderRefund = (params) => post('/api/bbOrder/refund', params)
export const bbOrderReboot = (params) => post('/api/bbOrder/reboot', params)
export const getPayUrl = (params) => post('/api/bbOrder/getPayUrl', params)
export const insurancePolicy = (params) => post('/api/bbOrder/insurancePolicy', params)
export const asyncCreateFinanceInvoice = (params) => post('/api/bbOrder/asyncCreateFinanceInvoice', params)


// 投保人
export const getHistoryCompany = (params) => get('/api/bbPolicy/getHistoryCompany', params)

// 常用地址
export const bbAddress = (params) => get('/api/bbAddress/page', params)
export const bbAddressSave = (params) => post('/api/bbAddress', params)
export const bbAddressEdit = (params) => put('/api/bbAddress', params)
export const bbAddressRemove = (params) => DELETE('/api/bbAddress', params)


// 财务中心
export const pagePayOrder = (params) => post('/api/bbUserAccount/queryByParam', params)
export const bbUserAccount = (params) => get('/api/bbUserAccount/page', params)
export const modifyUserProduct = (params) => post('/api/bbUserAccount/modifyUserProduct', params)
export const accountDetail = (params) => get('/api/bbUserAccount/getSelfAccount')
export const recharge = (params) => post('/api/bbUserAccount/recharge', params)

